package com.blb.service.impl;

import com.blb.entity.Quality;
import com.blb.mapper.QualityMapper;
import com.blb.service.IQualityService;
import com.blb.utils.DataTablePage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class QualityServiceImpl implements IQualityService {

    @Resource
    QualityMapper qualityMapper;

    @Override
    public Quality fangWei(@Param("name")String name,@Param("companyId") String companyId) {
        return qualityMapper.fangWei(name,companyId);
    }

    @Override
    public List<Quality> selectRoad(@Param("start")int start,@Param("length") int length, @Param("id")String id,@Param("companyId") String companyId) {

        return qualityMapper.selectRoad(start,length,id,companyId);
    }

    @Override
    public Integer selAll(@Param("companyId") String companyId) {
        return qualityMapper.selAll(companyId);
    }
}
